<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户列表</title>
</head>
<body>
    <h1>User_list</h1>
    <hr>
    <ul>
        {% for user in  users %}
            <li>
                <a href=" {% url 'App:userdetail' user.id %} ">
                    {{ user.username}} - {{user.age}}
                </a>
            </li>
        {% endfor %}
    </ul>
</body>
</html>